package com.yixun.qfbao.model.enums;

public enum PremisesAuditEnum {
	PRMIISES_APPLY("3","待申请"),
    PRMIISES_AUDITING("2", "分销审核中"),
    PRMIISES_SUCCESS("1", "审核通过"),
    PREMISES_FAIL("0","审核失败");

    private String code;
    private String name;

    private PremisesAuditEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static PremisesAuditEnum getByCode(String code) {
        for (PremisesAuditEnum item : PremisesAuditEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
